﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200002D RID: 45
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ActivateFarmElementCsReq : IMessage<ActivateFarmElementCsReq>, IMessage, IEquatable<ActivateFarmElementCsReq>, IDeepCloneable<ActivateFarmElementCsReq>, IBufferMessage
	{
		// Token: 0x17000081 RID: 129
		// (get) Token: 0x060001E3 RID: 483 RVA: 0x000068A9 File Offset: 0x00004AA9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ActivateFarmElementCsReq> Parser
		{
			get
			{
				return ActivateFarmElementCsReq._parser;
			}
		}

		// Token: 0x17000082 RID: 130
		// (get) Token: 0x060001E4 RID: 484 RVA: 0x000068B0 File Offset: 0x00004AB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ActivateFarmElementCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000083 RID: 131
		// (get) Token: 0x060001E5 RID: 485 RVA: 0x000068C2 File Offset: 0x00004AC2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ActivateFarmElementCsReq.Descriptor;
			}
		}

		// Token: 0x060001E6 RID: 486 RVA: 0x000068C9 File Offset: 0x00004AC9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ActivateFarmElementCsReq()
		{
		}

		// Token: 0x060001E7 RID: 487 RVA: 0x000068D1 File Offset: 0x00004AD1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ActivateFarmElementCsReq(ActivateFarmElementCsReq other) : this()
		{
			this.worldLevel_ = other.worldLevel_;
			this.entityId_ = other.entityId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060001E8 RID: 488 RVA: 0x00006902 File Offset: 0x00004B02
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ActivateFarmElementCsReq Clone()
		{
			return new ActivateFarmElementCsReq(this);
		}

		// Token: 0x17000084 RID: 132
		// (get) Token: 0x060001E9 RID: 489 RVA: 0x0000690A File Offset: 0x00004B0A
		// (set) Token: 0x060001EA RID: 490 RVA: 0x00006912 File Offset: 0x00004B12
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint WorldLevel
		{
			get
			{
				return this.worldLevel_;
			}
			set
			{
				this.worldLevel_ = value;
			}
		}

		// Token: 0x17000085 RID: 133
		// (get) Token: 0x060001EB RID: 491 RVA: 0x0000691B File Offset: 0x00004B1B
		// (set) Token: 0x060001EC RID: 492 RVA: 0x00006923 File Offset: 0x00004B23
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EntityId
		{
			get
			{
				return this.entityId_;
			}
			set
			{
				this.entityId_ = value;
			}
		}

		// Token: 0x060001ED RID: 493 RVA: 0x0000692C File Offset: 0x00004B2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ActivateFarmElementCsReq);
		}

		// Token: 0x060001EE RID: 494 RVA: 0x0000693A File Offset: 0x00004B3A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ActivateFarmElementCsReq other)
		{
			return other != null && (other == this || (this.WorldLevel == other.WorldLevel && this.EntityId == other.EntityId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060001EF RID: 495 RVA: 0x00006978 File Offset: 0x00004B78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.WorldLevel != 0U)
			{
				num ^= this.WorldLevel.GetHashCode();
			}
			if (this.EntityId != 0U)
			{
				num ^= this.EntityId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060001F0 RID: 496 RVA: 0x000069D0 File Offset: 0x00004BD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060001F1 RID: 497 RVA: 0x000069D8 File Offset: 0x00004BD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060001F2 RID: 498 RVA: 0x000069E4 File Offset: 0x00004BE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.WorldLevel != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.WorldLevel);
			}
			if (this.EntityId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.EntityId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060001F3 RID: 499 RVA: 0x00006A40 File Offset: 0x00004C40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.WorldLevel != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.WorldLevel);
			}
			if (this.EntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EntityId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060001F4 RID: 500 RVA: 0x00006A98 File Offset: 0x00004C98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ActivateFarmElementCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.WorldLevel != 0U)
			{
				this.WorldLevel = other.WorldLevel;
			}
			if (other.EntityId != 0U)
			{
				this.EntityId = other.EntityId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060001F5 RID: 501 RVA: 0x00006AE8 File Offset: 0x00004CE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060001F6 RID: 502 RVA: 0x00006AF4 File Offset: 0x00004CF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.EntityId = input.ReadUInt32();
					}
				}
				else
				{
					this.WorldLevel = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400009C RID: 156
		private static readonly MessageParser<ActivateFarmElementCsReq> _parser = new MessageParser<ActivateFarmElementCsReq>(() => new ActivateFarmElementCsReq());

		// Token: 0x0400009D RID: 157
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400009E RID: 158
		public const int WorldLevelFieldNumber = 6;

		// Token: 0x0400009F RID: 159
		private uint worldLevel_;

		// Token: 0x040000A0 RID: 160
		public const int EntityIdFieldNumber = 14;

		// Token: 0x040000A1 RID: 161
		private uint entityId_;
	}
}
